package com.yl.chainStore.mapper.pay

import com.yl.chainStore.entity.pay.PayCompanyCollectionLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.pojo.vo.pay.CompanyCollectionLogSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 * 公司收款记录 Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-07-30
 */
@Mapper
interface PayCompanyCollectionLogMapper : BaseMapper<PayCompanyCollectionLog> {

    /**
     * 获取列表
     */
    fun getList(@Param("vo") vo: CompanyCollectionLogSelectVo): List<PayCompanyCollectionLog>

    /**
     * 获取分页
     */
    fun getPage(
            @Param("page") page: Page<PayCompanyCollectionLog>,
            @Param("vo") vo: CompanyCollectionLogSelectVo
    ): Page<PayCompanyCollectionLog>

    /**
     * 查询今日收款金额
     */
    fun getTodayNewCollection(@Param("deptId") deptId: Long): Long
}
